///game init
global.pname = "com.smartbijisoft.PiggoCyks";

global.initname =  "initgamefile";
global.max_mundos = 3;
global.max_levels = 10; //levels por mundo
global.levellist = false;
global.mundos_data = false;
global.current_mundo = 0;
global.current_nivel = 0;
global.success = false;

global.angulo = 0;

global.amplitud = 0;
global.mundo_amplitud[1] = 150;
global.mundo_amplitud[2] = 100;
global.mundo_amplitud[3] = 100;

global.is_menu = true;
global.turno = 10;

global.planetaSprites[1] =  spr_violeta;
global.planetaSprites[2] = spr_azul;
global.planetaSprites[3] = spr_cyclopia;

global.planetaSpritesLock[1] = false;
global.planetaSpritesLock[2] = sp_azul_locked;
global.planetaSpritesLock[3] = sp_cyclopia_locked;

global.menulist[1] = menu_1;
global.menulist[2] = menu_2;
global.menulist[3] = menu_3;

global.spriteVacio[1] = sp_vacio_1;
global.spriteVacio[2] = sp_vacio_2;
global.spriteVacio[3] = sp_vacio_3;


//menu sprites
global.menuSprites[1,1] = spr_1_1;
global.menuSprites[1,2] = spr_1_2;
global.menuSprites[1,3] = spr_1_3;
global.menuSprites[1,4] = spr_1_4;
global.menuSprites[1,5] = spr_1_5;
global.menuSprites[1,6] = spr_1_6;
global.menuSprites[1,7] = spr_1_7;
global.menuSprites[1,8] = spr_1_8;
global.menuSprites[1,9] = spr_1_9;
global.menuSprites[1,10] = spr_1_10;

global.menuSprites[2,1] = spr_2_1;
global.menuSprites[2,2] = spr_2_2;
global.menuSprites[2,3] = spr_2_3;
global.menuSprites[2,4] = spr_2_4;
global.menuSprites[2,5] = spr_2_5;
global.menuSprites[2,6] = spr_2_6;
global.menuSprites[2,7] = spr_2_7;
global.menuSprites[2,8] = spr_2_8;
global.menuSprites[2,9] = spr_2_9;
global.menuSprites[2,10] = spr_2_10;

global.menuSprites[3,1] = spr_3_1;
global.menuSprites[3,2] = spr_3_2;
global.menuSprites[3,3] = spr_3_3;
global.menuSprites[3,4] = spr_3_4;
global.menuSprites[3,5] = spr_3_5;
global.menuSprites[3,6] = spr_3_6;
global.menuSprites[3,7] = spr_3_7;
global.menuSprites[3,8] = spr_3_8;
global.menuSprites[3,9] = spr_3_9;
global.menuSprites[3,10] = spr_3_10;

// room list
global.roomList[1,1] = r_1_1;
global.roomList[1,2] = r_1_2;
global.roomList[1,3] = r_1_3;
global.roomList[1,4] = r_1_4;
global.roomList[1,5] = r_1_5;
global.roomList[1,6] = r_1_6;
global.roomList[1,7] = r_1_7;
global.roomList[1,8] = r_1_8;
global.roomList[1,9] = r_1_9;
global.roomList[1,10] = r_1_10;

global.roomList[2,1] = r_2_1;
global.roomList[2,2] = r_2_2;
global.roomList[2,3] = r_2_3;
global.roomList[2,4] = r_2_4;
global.roomList[2,5] = r_2_5;
global.roomList[2,6] = r_2_6;
global.roomList[2,7] = r_2_7;
global.roomList[2,8] = r_2_8;
global.roomList[2,9] = r_2_9;
global.roomList[2,10] = r_2_10;

global.roomList[3,1] = r_3_1;
global.roomList[3,2] = r_3_2;
global.roomList[3,3] = r_3_3;
global.roomList[3,4] = r_3_4;
global.roomList[3,5] = r_3_5;
global.roomList[3,6] = r_3_6;
global.roomList[3,7] = r_3_7;
global.roomList[3,8] = r_3_8;
global.roomList[3,9] = r_3_9;
global.roomList[3,10] = r_3_10;

//leer archivo score
read_init();



//crear los mundos
instance_create(200,256,obj_violeta);
instance_create(480,512,obj_azul);
instance_create(800,256,obj_cyclopia);

if(global.success)
  instance_create(460,200,oCup);